Platform Explorer / Nuxeo Platform 2021.47

Component org.nuxeo.ecm.relations.web.contentview.contrib

Resolution Order

470
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.relations.web.contentview.contrib">

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="relation_search">

      <title>label.search.results</title>
      <translateTitle>true</translateTitle>

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <parameter>#{currentDocument.id}</parameter>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="RelationSearch">
          <predicate parameter="ecm:path" operator="STARTSWITH">
            <field schema="relation_search" name="ecm_path" />
          </predicate>

          <predicate parameter="dc:title" operator="FULLTEXT">
            <field schema="relation_search" name="dc_title" />
          </predicate>

          <predicate parameter="ecm:fulltext" operator="FULLTEXT">
            <field schema="relation_search" name="ecm_fulltext" />
          </predicate>

          <predicate parameter="ecm:currentLifeCycleState" operator="!=">
            <field schema="relation_search" name="currentLifeCycleState" />
          </predicate>

          <fixedPart>
            ecm:uuid != ? AND ecm:mixinType != 'HiddenInNavigation' AND
            ecm:mixinType != 'Folderish' AND ecm:isVersion = 0
          </fixedPart>
        </whereClause>
        <sort column="dc:title" ascending="true" />
        <pageSize>5</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="relation_search" />

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout name="relation_document_listing" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
      </resultLayouts>

    </contentView>

  </extension>

</component>